import Vue from "vue";
import VueRouter from "vue-router";

const Login = () => import('../views/home/Login.vue')
const Index = () => import('../views/home/Index.vue')
const StandardCodeManage = () => import('../views/StandardCodeManage/StandardCodeManage.vue')
const ExcelManage = () => import('../views/ExcelManage/ExcelManage.vue')
// const ColorTheme = () => import('../views/SystemSetting/ColorTheme.vue')
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "登录",
    redirect: '/Login'
  },
  {
    path: "/Login",
    name: "登录页面",
    component: Login
  },
  {
    path: "/Index",
    name: "首页",
    component: Index,
    redirect: '/StandardCodeManage',
    children: [
      {
        path: "/StandardCodeManage",
        name: "标准规范管理",
        component: StandardCodeManage,
        meta: {
          keepAlive: true
        }
      },
      {
        path: "/ExcelManage",
        name: "Excel管理",
        component: ExcelManage
      },
      // {
      //   path: "/TestPointManaasger",
      //   name: "测点管理",
      //   component: TestPointManager
      // },
      // {
      //   path: "/ColorTheme",
      //   name: "系统设置",
      //   component: ColorTheme
      // }
    ]
  }
];

const router = new VueRouter({
  routes,
});

export default router;
